package com.spa.infrastructure.enums.dict.base;

import com.spa.infrastructure.annotation.SysDictEnumAnnotation;
import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
@SysDictEnumAnnotation(key = "sourceType", desc = "来源类型")
public enum SourceTypeEnum {

    WeChatMini("WeChatMini", "微信小程序",1,0),
    WeChat("WeChat", "微信公众号",2,0),
    DouYinMiNi("DouYinMiNi", "抖音小程序",3,0),
    DouYinEnterprise("DouYinEnterprise", "抖音生活服务商应用",4,0),
    DouYinWEB("DouYinWEB", "抖音网站应用",5,0),
    DouYin("DouYin", "抖音",6,0),
    ;

    private String code;
    private String desc;
    //排序
    private int sort;
    //状态  0 启用  1 不启用
    private int status;


    public static SourceTypeEnum byCode(String code) {
        for (SourceTypeEnum value : values()) {
            if (value.code.equals(code)) return value;
        }
        return null;
    }







}
